[Unit]
Description=Armbian enhanced Log2Ram
DefaultDependencies=no
Before=rsyslog.service syslog.target systemd-journald.service sysinit.target shutdown.target
After=local-fs.target
Conflicts=shutdown.target
RequiresMountsFor=/var/log /var/log.hdd
IgnoreOnIsolate=yes

[Service]
Type=oneshot
ExecStart=/usr/sbin/log2ram start
ExecStop=/usr/sbin/log2ram stop
ExecReload=/usr/sbin/log2ram write
RemainAfterExit=yes

[Install]
WantedBy=sysinit.target
